package com.cqc.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author cui
 * @description TODO
 * @date 2022/6/27
 **/
public class Student {


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//前端转后台
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//后台转前端
    private Date birthday;

    //货币
    @NumberFormat(style = NumberFormat.Style.CURRENCY)
    BigDecimal numberCurrency;
    //默认
    @NumberFormat(style = NumberFormat.Style.DEFAULT)
    BigDecimal numberDefault;
    //数字
    @NumberFormat(style = NumberFormat.Style.NUMBER)
    BigDecimal numberNumber;
    //百分比 0.5>50%
    @NumberFormat(style = NumberFormat.Style.PERCENT)
    BigDecimal numberPercent;
    //pattern
    @NumberFormat(pattern = "#,###")
    BigDecimal numberPattern;


    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public BigDecimal getNumberCurrency() {
        return numberCurrency;
    }

    public void setNumberCurrency(BigDecimal numberCurrency) {
        this.numberCurrency = numberCurrency;
    }

    public BigDecimal getNumberDefault() {
        return numberDefault;
    }

    public void setNumberDefault(BigDecimal numberDefault) {
        this.numberDefault = numberDefault;
    }

    public BigDecimal getNumberNumber() {
        return numberNumber;
    }

    public void setNumberNumber(BigDecimal numberNumber) {
        this.numberNumber = numberNumber;
    }

    public BigDecimal getNumberPercent() {
        return numberPercent;
    }

    public void setNumberPercent(BigDecimal numberPercent) {
        this.numberPercent = numberPercent;
    }

    public BigDecimal getNumberPattern() {
        return numberPattern;
    }

    public void setNumberPattern(BigDecimal numberPattern) {
        this.numberPattern = numberPattern;
    }
}
